<%= error_messages_for :mugshot %>
<% form_for:mugshot, :url => "create",
                      :html => { :multipart => true , :id => "edit_post" } do |f| -%>
    <label for="mugshot">Upload Image:</label><br/>
    <%= f.file_field(:uploaded_data,:size=>"18") %><br/>
    <%= submit_tag 'Upload' %>
  <% if @cp == 1 %>
  <%= link_to image_tag(@mugshot.public_filename,:size => "180x150"), @mugshot.public_filename %><br/>
  <br/>
  <% end %>
<% end -%>

